package com.mall.payment.rabbit;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mall.common.service.impl.CrudServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author: 谢君臣
 * @Date: 2022/8/15-12:16
 * @version: 1.0
 * @function:
 */
@Service
public class RabbitMessageServiceImpl extends CrudServiceImpl<RabbitMessageDao, RabbitMessageEntity, RabbitMessageEntity>  implements RabbitMessageService {


    @Override
    public QueryWrapper<RabbitMessageEntity> getWrapper(Map<String, Object> params) {
        String id = (String)params.get("id");

        QueryWrapper<RabbitMessageEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }
}
